led_on_c.bin: ctr0.s led_on.c 
	arm-linux-gnueabihf-gcc -g -c -o ctr0.o ctr0.s
	arm-linux-gnueabihf-gcc -g -c -o led_on.o led_on.c
	arm-linux-gnueabihf-ld -Ttext 0x00000000 -g ctr0.o  led_on.o -o led_on_c_elf
	arm-linux-gnueabihf-objcopy -O binary -S led_on_c_elf  led_on_c.bin

clean:
	rm *.bin *elf *.o *.dis


